package org.springframework.amqp.tutorials.config.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//3个接收者
//学生
@Component
@RabbitListener(queues = "people.student")
public class StudentTopicReceiver {

    @RabbitHandler
    public void receiverMsg(String msg){
        System.out.println("学生接收到消息："+msg);
    }
}
